import getpass
card = int(getpass.getpass("请输入最终答案的数字："))
count = 0

while True:
    if count <3:
        user_guess = int(input("来猜猜是哪个数字吧："))
        if card == user_guess:
            print("牛哇，不愧是你，猜数字小天才")
            break
        elif card > user_guess:
            print("猜大点啊，又不花你的钱")
        else:
            print("这合理吗，猜小点")
    else:
        print("笑一下蒜了，猜数字不适合你，下一位")
        break
    count = count+1